import request from '@/utils/request'

/**
 * 获取网站设置信息
 */

export function getSiteSetting(params) {
  return request({
    url: '/site_settings/get',
    method: 'get',
    params
  })
}

/**
 * 修改网站设置信息
 */

export function newSetting(data) {
  return request({
    url: '/site_settings/modify',
    method: 'post',
    data
  })
}

/**
 * 获取产品介绍
 */
export function getProduct(params) {
  return request({
    url: '/home_product_introduction/get',
    method: 'get',
    params
  })
}

/**
 * 新增产品介绍
 */
export function addProduct(data) {
  return request({
    url: '/home_product_introduction/add',
    method: 'post',
    data
  })
}

/**
 * 修改产品介绍
 */
export function modifyProduct(data) {
  return request({
    url: '/home_product_introduction/modify',
    method: 'post',
    data
  })
}

/**
 * 删除产品介绍
 */
export function deleteProduct(data) {
  return request({
    url: '/home_product_introduction/delete',
    method: 'post',
    data
  })
}
